package serviceImp;
import java.io.IOException;
import java.util.Arrays;

import org.springframework.beans.BeansException;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import util.SpringContextUtil;
public class Test {
	
	public static void main(String[] args) throws BeansException, NoSuchMethodException, SecurityException {
		 ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(  
	                new String[] { "applicationContext-service.xml" });  
//	        context.start();  
		 System.out.println(Arrays.toString(SpringContextUtil.getApplicationContext().getBeanDefinitionNames()));
//	        MyService demoService = (MyService) context.getBean("myService");  
//	        demoService.callApp("say", "say");
//	        System.out.println(context.getBean("SayImp1"));
	        try {
				System.in.read();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}  
	    }  
	}

